<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<center>
		<h1>房屋信息</h1><br>
		小区名称：<input readonly="readonly" value="${hou.name }">
		单元楼：<input readonly="readonly" value="${hou.building }">
		门牌号：<input readonly="readonly" value="${hou.number }">
		<br><br>
		<h1>新增配套设施</h1>
		<form:form action="addPei" method="post" modelAttribute="pei">
			<form:hidden path="hid" value="${hou.id }"/>
			配套设施：<form:input path="name"/>
			<form:errors path="name" cssStyle="color:red"></form:errors>
			<form:errors path="id" cssStyle="color:red"></form:errors>
			
			数量：<form:input path="num"/>
			<form:errors path="num" cssStyle="color:red"></form:errors>
			
			单价：<form:input path="price"/>
			<form:errors path="price" cssStyle="color:red"></form:errors>
			<br>
			<form:button>新增</form:button>
		</form:form>
	</center>
</body>
</html>